package com.song.cloud.payment.controller;

import com.song.cloud.common.entities.CommonResult;
import com.song.cloud.payment.dao.paymentDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author ZhangGuisong
 * @Date 2021/3/2-19:23
 */
@RestController
public class paymentController {
    @Autowired
    private paymentDao paymentDao;
    @GetMapping("/getData/{id}")
    public CommonResult getData(@PathVariable("id") Integer id){
        return paymentDao.getData(id);
    }
}
